//
//  Comment.swift
//  Sina
//
//  Created by 王杰 on 15/11/11.
//  Copyright © 2015年 王杰. All rights reserved.
//

import UIKit
let themeColor = UIColor.orangeColor()
let client_id = "3739456229"
let redirect_uri = "http://www.itcast.cn"
let client_secret = "780e7624b58a8f9ea7da81b15a30428d"

let screenH = UIScreen.mainScreen().bounds.height
let screenW = UIScreen.mainScreen().bounds.width

let AppSwitchRootViewControler = "AppSwitchRootViewControler"

let AppErrorTip = "网络君正在睡觉,请稍后再来..."
func printLog<T>(message: T,
    logError: Bool = false,
    file: String = __FILE__,
    method: String = __FUNCTION__,
    line: Int = __LINE__)
{
    if logError {
        print("\((file as NSString).lastPathComponent)[\(line)], \(method): \(message)")
    } else {
        #if DEBUG
            print("\((file as NSString).lastPathComponent)[\(line)], \(method): \(message)")
        #endif
    }
}
